import request from '@/utils/request';
export default function createOne(data)  {
    return request({
        url: 'py/data/upload',
        method: 'post',
        data: data
    })
}
// d
export function deleteOne(id) {
    return request({
        url: 'py/data/' + id,
        method: 'delete'
    })
}
// r
export function queryOne(id) {
    return request({
        url: 'py/data/' + id,
        method: 'get'
    })
}
export function queryList(query) {
    return request({
        url: 'py/data',
        method: 'get',
        params: query
    })
}